If this were java code , you might describe the default target as a delegator method - it calls the other targets in the right order in a sense , it s an implementation of the template method pattern 如果它使用的是java代碼,您可以描述缺省目標(biāo)為delegator方法- -它按正確的順序調(diào)用其它目標(biāo)(在某種意義上,它是template method模板的實(shí)施) 。
Second , improving the original design , include building the inheritance system for applicaion sheets , making strategy for a new flow node , and supporting the various database connections . we implemente the tasks by using three design patterns , they are abstract factory pattern , strategy pattern and template method pattern 第二,改進(jìn)設(shè)計(jì),主要是建立申請(qǐng)單的繼承體系,為新建審批節(jié)點(diǎn)制定策略和支持連接到不同的數(shù)據(jù)庫。這是通過三個(gè)設(shè)計(jì)模式來實(shí)現(xiàn)的,分別是抽象工廠模式,策略模式和模板方法模式。
In software engineering, the template method pattern is a behavioral design pattern that defines the program skeleton of an algorithm in a method, called template method, which defers some steps to subclasses. It lets one redefine certain steps of an algorithm without changing the algorithm's structure.